/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.bld.util.dominio;

/**
 *
 * @author Pedro
 */
public enum SituacaoRegistro {

    INATIVO(0), ATIVO(1);

    private final int value;

    private SituacaoRegistro(int value) {
        this.value = value;
    }

    @Override
    public String toString() {

        String resposta = "";

        switch (this) {
            case INATIVO:
                resposta = "Inativo";
                break;
            case ATIVO:
                resposta = "Ativo";
                break;
        }

        return resposta;
    }

    public boolean equals(SituacaoRegistro e) {
        return this.getValue() == e.getValue();

    }

    /**
     * @return the value
     */
    public int getValue() {
        return value;
    }
}
